<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="language" content="en"/>

    <!-- blueprint CSS framework -->
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css"
          media="screen, projection"/>
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css"
          media="print"/>
    <!--[if lt IE 8]>
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css"
          media="screen, projection"/>
    <![endif]-->

    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css"/>
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css"/>
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap.css" rel="stylesheet"/>
    <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
    <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/bootstrap.js"></script>
    <title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>
<div class="container">
    <div class="masthead">
        <div class="row" style="border-bottom: 1px solid #ebebeb;">
            <div class="col-md-2"><h3 class="text-muted"><a href="<?php echo Yii::app()->request->baseUrl; ?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/logo.png" alt="..." width="150px"/></a></h3>
            </div>
            <div class="col-md-10">

                    <div class="row">
                        <div class="col-md-2">
                        </div>
                        <div class="col-md-10">
                            <ul class="nav nav-pills pull-right ">
                                <?php if (Yii::app()->user->isGuest) { ?>
                                    <li><?php echo CHtml::link('Login', array('/user/login')); ?></li>
                                    <li><?php echo CHtml::link('Register', array('/user/registration')); ?></li>
                                <?php } ?>
                                <?php if (!Yii::app()->user->isGuest) { ?>


                                    <li><?php echo CHtml::link('My Profile', array('/user/profile', 'id' => Yii::app()->user->getId())); ?></li>
                                    <li><?php echo CHtml::link('logout', array('/user/logout')); ?></li>
                                    <li class="disable active"><a
                                            href="#">MEMBER: <?php echo Yii::app()->user->name; ?></a></li>
                                <?php } ?>
                            </ul>
                        </div>
                    </div>
            </div>
        </div>

        <!-- Jumbotron -->
        <div class="main-content">
            <div id="content">
                <?php echo $content; ?>
            </div>
        </div>
        <!-- Site footer -->
        <div class="footer">
            <div class="row">
                <div class="col-md-6">
                    <p>Copyright © 2014 Ideality. All rights reserved.</p>
                </div>
                <div class="col-md-6">
                    <ul class="list-inline pull-right">
                        <li>Site Map</li>
                        <li>FAQ</li>
                        <li>Contact us</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
